<div class="content-head">
		<div class="finder-title">
			<h2 class="head-title span-auto">授权列表<span class="num">(共<em class="count2">{$count}</em>条)</span></h2>
		</div>
		<div style="padding-right:10px;" class="gridlist-action finder-action clearfix">
			<script>
				function recycleLicense(){
					var proArray=new Array();
					var values=$('input:checkbox[name^=checkbox_]:checked').each(
						function (index){
							proArray.push($(this).val());
						}
					);
					if(proArray.length==0){
						alert('请选择要删除的授权！');
						return false;
					}
					$('#values').attr('value',proArray);
					$('#recycleLicense').submit();
				}
			</script>
			<ul class="finder-action-items flt">
				<li><a href="{:U('License/showadd')}"><span>添加授权</span></a></li>
				<li>
				<form id='recycleLicense' action="{:U('License/recycle')}" method='post'>
					<a href="javascript:recycleLicense()">
				<span>删除授权</span></a>
				<input type='hidden' id='values' name='values' value=''/>
				</form>
				</li>
			</ul>

			<div class="frt">
			<form class="finder-search">
			  <table cellspacing="0" cellpadding="0">
				<tbody><tr>
				  <td>
					<span class="finder-search-select"><label>产品名称</label><img src="./Public/Images/arrow-down.gif"></span>
				  </td>
				  <td><input type="text" placeholder="输入后直接回车确认" maxlength="40" value="" size="15" class="finder-search-input f-12">
				  </td>
				  <td>
						<a href="javascript:void(0);" class="finder-search-btn lnk-search">
							<span>搜索</span>
						</a>
				 </td>
				</tr>
			  </tbody>
			  </table>
			</form>
			</div>
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tabstyle">
			  <tr>
				<th style='width:20px'><input type="checkbox" name="pcheckbox" id="checkbox" onclick='checkAll()'/></th>
				<th style='width:60px'>查看</th>
				<th style='width:80px'>操作</th>
				<th style='width:80px;'>客户</th>
				<th style='width:100px;'>产品</th>
				<th style='width:100px;'>版本</th>
				<th style='width:100px;'>类型</th>
				<th style='width:100px;'>开始时间</th>
				<th style='width:100px;'>结束时间</th>
				<th style='width:100px;'>查看授权</th>
				<th></th>
			  </tr>
			  <volist name='list' id='vo' empty='暂时没有数据！'>
			  <tr <eq name="mod" value="0">class="bgcor"</eq>>
				<td><input type="checkbox" name="checkbox_{$vo.id}" id="checkbox_{$vo.id}" value='{$vo.id}' /></td>
				<td><img src="./Public/Images/finder_drop_arrow.gif" alt="查看" width="16" height="16" /></td>
				<td><a href="#">--</a></td>
				<td>{$vo.customer_id}</td>
				<td>{$vo.product_id}</td>
				<td>{$vo.version}</td>
				<td>{$vo.type}</td>
				<td>{$vo.start_time|date='Y-m-d',###}</td>
				<td>{$vo.end_time|date='Y-m-d',###}</td>
				<td><a href="javascript:showLicense()">查看授权</a></td>
				<td></td>
			  </tr>
			  </volist>
			</table>
  </div>
<script>
	function showLicense(){
		$(function() {
			$( "#dialog-modal" ).dialog({
				height: 140,
				modal: true
			});
		});
	}
</script>
<div id="dialog-modal" title="查看授权" style='display:none'>
	<p>Adding the modal overlay screen makes the dialog look more prominent because it dims out the page content.</p>
</div>
<div class="finder-footer_xu">
<div class="page_xu">
	{$page}
</div>
</div>    